from django.urls import path
from django.contrib import admin
from django.urls import path
from tongxiaoyong_com.settings import MEDIA_ROOT
from django.views.static import serve
from django.conf.urls import url
from . import views

urlpatterns = [
    path('menu/get_list', views.getList),
    path('menu/get_detail', views.getDetail),
    path('menu/get_summary', views.getSummary),
    path('user/get_token', views.getToken),
    path('admin/', admin.site.urls),
    url(r'^media/(?P<path>.*)$', serve, {"document_root": MEDIA_ROOT})
]